﻿@using Pottery.Frontend.Resources
@model Pottery.Frontend.ViewModels.ProductDetailsViewModel

@{
    ViewBag.Title = Model.Product.Name;
}


<div class="divProdImg">
    <img src="~/Content/images/PictMockBig.jpg" />
</div>
<div class="divProdImg width">
    <table class="contanttable">
        <tr>
            <td valign="top" class="titleProduct">@ViewProductDetails.Description </td>
            <td>
                @Model.Product.Description
            </td>
        </tr>
        <tr>
            <td class="titleProduct">@ViewProductDetails.Size </td>
            <td>
                @Model.Product.Size
            </td>
        </tr>
        <tr>
            <td class="titleProduct">@ViewProductDetails.Price </td>
            <td>
                <b>@Model.Product.Price @ViewProductDetails.MockCurrency</b>
            </td>
        </tr>
    </table>
</div>

@*@{Html.RenderPartial("_AddToCart", Model.Product.Id);}*@
@using (Html.BeginForm("AddToCart", "Cart",
                new { productId = Model.Product.Id, returnUrl = Request.Url.PathAndQuery }))
{
    <input type="submit" value="@ViewProductDetails.AddToCart" />
}
